package top.wardyan.common.vo;

/**
 * MQ消息
 * @author harrydeep@wardyan.top
 * 2025-02-16
 */

@SuppressWarnings("unchecked")
public abstract class Result<T extends Result<T>> {

	private static final cn.hutool.log.Log log = cn.hutool.log.Log.get();
	
	
	/** 负数表示错误, 0表示未知错误, 200表示OK **/
	Integer code;
	
	/** 消息. 如果出错了这里是消息 **/
	String msg;
	
	/** 实际数据, 譬如一个对象, 或者是List<对象> **/
	Object datas;

	public Integer getCode() {
		return code;
	}

	public T setCode(Integer code) {
		this.code = code;
		return (T)this;
	}

	public String getMsg() {
		return msg;
	}

	public T setMsg(String msg) {
		this.msg = msg;
		return (T) this;
	}

	public Object getDatas() {
		return datas;
	}

	public T setDatas(Object datas) {
		this.datas = datas;
		return (T) this;
	}
	
	

}
